﻿using Common.Communication;
using Common.Device.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Device.Interfaces
{
    public interface IShuZiDianQiao:IDevice
    {
        /// <summary>
        /// 读取电容
        /// </summary>
        /// <param name="vol">电压</param>
        /// <param name="channel">通道</param>
        /// <param name="mode">电容模式</param>
        /// <returns></returns>
        Result<double> GetDianRong(double vol, int channel = 1, CeLiangYiEnum.DianRongMode mode = CeLiangYiEnum.DianRongMode.CPD);
        /// <summary>
        /// 读取电感
        /// </summary>
        /// <param name="vol">电压</param>
        /// <param name="channel">通道</param>
        /// <param name="mode">电感模式</param>
        /// <returns></returns>
        Result<double> GetDianGan(double vol, int channel = 1, CeLiangYiEnum.DianGanMode mode = CeLiangYiEnum.DianGanMode.LPD);
    }
}
